package com.five.zhh.fiveinfive.room.message;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.five.zhh.fiveinfive.room.user.UserInfo;
import com.five.zhh.fiveinfive.room.user.UserInfoInRoom;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 玩家操作
 */
@Data
public class UserOperate {

    protected UserInfoInRoom sender;

    protected OperateTittle tittle;

    protected String roomCode;

    private final LocalDateTime time = LocalDateTime.now();

    public UserOperate() {
    }

    public UserOperate(OperateTittle tittle) {
        this.tittle = tittle;
    }
    public UserOperate(OperateTittle tittle, String roomCode) {
        this.tittle = tittle;
        this.roomCode = roomCode;
    }

}
